package com.hsmw.schedule;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@ServletComponentScan
@MapperScan("com.hsmw.schedule.mapper")
@SpringBootApplication
@Slf4j
public class HsmwScheduleApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(HsmwScheduleApplication.class, args);
		System.out.println("启动成功！！！");
	}


	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(HsmwScheduleApplication.class);
	}

}
